import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import CoordinateTransformView from '../views/CoordinateTransformView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // {
    //   path: '/',
    //   name:'cesium-test',
    //   component: () => import('../components/cesiumTest.vue'),
    // },
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/coordinate-transform',
      name: 'coordinate-transform',
      component: CoordinateTransformView,
    },
    {
      path: '/advanced-cesium',
      name: 'advanced-cesium',
      component: () => import('../components/AdvancedCesiumDemo.vue'),
    },
    {
      path: '/simple-cesium',
      name: 'simple-cesium',
      component: () => import('../components/SimpleCesiumDemo.vue'),
    },
  ],
})

export default router
